
package com.b5mei.tool;

import java.util.regex.Pattern;

public class VerifyData
{
    /**
     * 验证UC中心的邮箱格式
     * @param email
     * @return
     */
    public static boolean verifyEmail(String email)
    {
        Pattern pattern = Pattern.compile("\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*");
        return pattern.matcher(email).matches();
    }
}
